package com.carrot.framework.constants;

/**
 * MyBatis 常量
 * @author liuhongzhen
 */
public interface MyBatisConstants {

    /** 逻辑删除值 */
    String  LOGIC_DELETE_VALUE = "1";
    /** 逻辑不删除值 */
    String  LOGIC_NOT_DELETE_VALUE = "0";

    /** ID */
    String FIELD_ID = "id";
    /** PID */
    String FIELD_PARENT_ID = "parent_id";
    /** PIDs */
    String FIELD_PARENT_IDS = "parent_ids";
    /** 创建人 */
    String FIELD_CREATE_BY = "create_by";
    /** 更新时间 */
    String FIELD_CREATE_TIME = "create_time";
    /** 更新人 */
    String FIELD_UPDATE_BY = "update_by";
    /** 更新时间 */
    String FIELD_UPDATE_TIME = "update_time";
    /** 逻辑删除 */
    String FIELD_DELETE_LOGIC = "deleted";
    /** 乐观锁 */
    String FIELD_OPTIMISTIC_LOCK = "version";
    /**系统用户*/
    Long SYSTEM_ID = 1L;
}
